home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Parser / assert.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  404 b   |  19 lines

  1. #ifndef Py_ASSERT_H
  2. #define Py_ASSERT_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. #ifdef MPW /* This is for MPW's File command */
  8.  
  9. #define assert(e) { if (!(e)) { printf("### Python: Assertion failed:\n\
  10.     File %s; Line %d\n", __FILE__, __LINE__); abort(); } }
  11. #else
  12. #define assert(e) { if (!(e)) { printf("Assertion failed\n"); abort(); } }
  13. #endif
  14.  
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif /* !Py_ASSERT_H */
  19.